package vip.xiaonuo.biz.modular.article.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import vip.xiaonuo.common.pojo.CommonFile;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class BizArticleAddParam {

    @NotNull(message = "栏目ID不能为空")
    @ApiModelProperty("栏目id")
    private String columnId;

    @NotNull(message = "标题不能为空")
    @ApiModelProperty("标题")
    private String title;

    @NotNull(message = "封面不能为空")
    @ApiModelProperty("封面")
    private CommonFile cover;

    @ApiModelProperty("介绍视频")
    private CommonFile video;

    @NotNull(message = "内容不能为空")
    @ApiModelProperty("内容")
    private String content;

    @NotNull(message = "浏览量不能为空")
    @ApiModelProperty("浏览量")
    private Integer viewCount;

    @NotNull(message = "价格不能为空")
    @ApiModelProperty("价格")
    private BigDecimal price;

    @NotNull(message = "资源链接不能为空")
    @ApiModelProperty("资源链接")
    private String link;

    @NotNull(message = "是否可见不能为空")
    @ApiModelProperty("是否可见")
    private String visible;

    @NotEmpty(message = "标签不能为空")
    @ApiModelProperty("标签")
    private List<String> tags;

    @NotNull(message = "排序码不能为空")
    @ApiModelProperty("排序码")
    private Integer sortCode;
}
